﻿jQuery(document).ready(function () {
    getAllBranch('ZZ1000500580040000', function (result) {
    });

});


function getAllBranch(Matno, func) {
    jQuery.ajax({
        type: "GET",
        url: "/api/BranchApi/GetAllActiveBranch",
        success: function (result) {
            jQuery('#branchAll').datagrid({
                data: result.AllBranch
            });
        },
        error: function (data) {
            if (func) {
                func(data);
            }
        }

    });
}